//
//  PhotoSubCategory.m
//  Tweetup
//
//  Created by Ha Cong Thuan on 4/6/14.
//  Copyright (c) 2014 Ha Cong Thuan. All rights reserved.
//

#import "PhotoSubCategory.h"

@implementation PhotoSubCategory
@synthesize description,_id,answer,created,img_thumb,modified,name,photo1,photo2,photo3,photo4,sub_category_id,suggest,user_id;

-(id)initWithJson:(NSDictionary *)dic{
    
    _id=[dic objectForKey:@"id"];
     user_id =[dic objectForKey:@"user_id"];
     name =[dic objectForKey:@"name"];
     sub_category_id =[dic objectForKey:@"sub_category_id"];
     img_thumb =[dic objectForKey:@"img_thumb"];
     answer =[dic objectForKey:@"answer"];
     suggest =[dic objectForKey:@"suggest"];
     photo1 =[dic objectForKey:@"photo1"];
     photo2 =[dic objectForKey:@"photo2"];
     photo3 =[dic objectForKey:@"photo3"];
     photo4 =[dic objectForKey:@"photo4"];
     description =[dic objectForKey:@"description"];
     created =[dic objectForKey:@"created"];
     modified =[dic objectForKey:@"modified"];
    
    return self;
}
@end
